// 布局
import Layout from '@/Layout/Index'
// 后台页面的路由文件
/**
 * RouterModule: 路由分组，菜单（Aside）内方法（GetMenusList）进行分类
 * AsideIcon: 菜单图标
 */
export default [
  {
    path: '/backstage', // 地址
    component: () => import(/* webpackChunkName: "Login-Home-Welcom" */ '@/vivew/BackstageView/Login/Login'), // 注意component没得s
    meta: {
      RouterModule: 'backstage'
    }
  },
  {
    // 布局页
    path: '/backstage_home', // 地址
    component: Layout, // 注意component没得s
    naem: 'BackstageHome',
    redirect: '/backstage_home/index', // 只要访问backstage_home组件就重定向到backstage_index
    meta: {
      RouterModule: 'backstage'
    },
    children: [{
      // 真实页面
      path: 'index', // 地址
      component: () => import(/* webpackChunkName: "Login-Home-Welcom" */ '@/vivew/BackstageView/Home/Index'), // 注意component没得s
      name: 'BackstageIndex',
      meta: {
        RouterModule: 'backstage',
        title: '首页',
        AsideIcon: 'el-icon-s-home'
      }
    }]
  },

  {
    path: '/rights_management', // 地址
    component: Layout, // 注意component没得s
    name: 'RightsManagement',
    redirect: '/rights_management/index', // 只要访问rights_management组件就重定向到/backstage_home/index
    meta: {
      RouterModule: 'backstage',
      title: '用户管理',
      AsideIcon: 'el-icon-user-solid'
    },
    children: [{
      // 真实页面
      path: '/rights_management/index', // 地址
      component: () => import(/* webpackChunkName: "Login-Home-Welcom" */ '@/vivew/BackstageView/RightsManagement/Index'), // 注意component没得s
      name: 'BackstageIndex',
      meta: {
        RouterModule: 'backstage',
        title: '用户管理',
        AsideIcon: 'el-icon-user-solid'
      }
    }]
  }
]
